//指定确定类型
let arrNum: number[] = [1, 23, 4, 5, 6, 7, 5];
let arrStr: string[] = ["js", "ts", "java"];

//泛型
let arrFan: Array<number> = [11, 12.2, 34];
let arrFanStr: Array<string> = ["11", "12.2", "34"];

//元组类型(数组里每个元素的类型)
let arrTup: [string, number, boolean] = ["tstr", 3.15, true];

let arr4: any[] = ["123", true, 123];
